﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UnitTests
{
    class Student
    {
        int facNumber;
        string name;

        public int FacNumber
        {
            get
            {
                return facNumber;
            }
        }

        public string Name
        {
            get
            {
                return name;
            }
        }

        public Student(int facNumber, string name)
        {
            if (facNumber < 10000 || facNumber > 99999) 
            {
                throw new ArgumentException("invalid faculty number"+facNumber);
            }

            if (name == string.Empty) 
            {
                throw new ArgumentException("no name entered");
            }
            this.facNumber = facNumber;
            this.name = name;
        }
    }
}
